"""Header_Information
------------------------------------
    File_Name: login
    Author: RR9
    Date: 2024/10/19
    Description: 用户登录相关数据模型
------------------------------------
"""

from pydantic import BaseModel


class Token(BaseModel):
    """返回token"""
    access_token: str
    token_type: str


class TokenData(BaseModel):
    """token键"""
    userid: str | None = None
    username: str | None = None


class User(BaseModel):
    """用户数据模型"""
    userid: int
    username: str
    disabled: bool | None = None


class UserInDB(User):
    """数据库中的用户模型"""
    hashed_password: str
